package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.MedicalService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MedicalServiceMapper extends BaseMapper<MedicalService> {

    @Select("SELECT * FROM medicalservice WHERE InsuredPersonID = #{insuredPersonId}")
    List<MedicalService> getMedicalServicesByInsuredPersonId( int insuredPersonId);
}
